package edu.hebeu.entity;

import java.io.Serializable;
import java.util.List;

public class ListOrderResponse implements Serializable {
    private static final long serialVersionUID = -375495376377277676L;
    private int code;
    private String msg;
    private Page page;
    public void setCode(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public String getMsg() {
        return msg;
    }

    public void setPage(Page page) {
        this.page = page;
    }
    public Page getPage() {
        return page;
    }

    public class Page implements Serializable{
        private static final long serialVersionUID = -3176028832152623093L;
        private int count;
        private int total;
        private int index;
        private List<Order> orders;
        public void setCount(int count) {
            this.count = count;
        }
        public int getCount() {
            return count;
        }

        public void setTotal(int total) {
            this.total = total;
        }
        public int getTotal() {
            return total;
        }

        public void setIndex(int index) {
            this.index = index;
        }
        public int getIndex() {
            return index;
        }

        public List<Order> getOrders() {
            return orders;
        }

        public void setOrders(List<Order> orders) {
            this.orders = orders;
        }

        @Override
        public String toString() {
            return "Page{" +
                    "count=" + count +
                    ", total=" + total +
                    ", index=" + index +
                    ", orders=" + orders +
                    '}';
        }
    }

    public class Order implements Serializable{
        private static final long serialVersionUID = 7582909372350718555L;
        private int id;
        private String code;
        private String user_username;
        private String time;
        private int amount;
        public void setId(int id) {
            this.id = id;
        }
        public int getId() {
            return id;
        }

        public void setCode(String code) {
            this.code = code;
        }
        public String getCode() {
            return code;
        }

        public void setUser_username(String user_username) {
            this.user_username = user_username;
        }
        public String getUser_username() {
            return user_username;
        }

        public void setTime(String time) {
            this.time = time;
        }
        public String getTime() {
            return time;
        }

        public void setAmount(int amount) {
            this.amount = amount;
        }
        public int getAmount() {
            return amount;
        }

        @Override
        public String toString() {
            return "Order{" +
                    "id=" + id +
                    ", code='" + code + '\'' +
                    ", user_username='" + user_username + '\'' +
                    ", time='" + time + '\'' +
                    ", amount=" + amount +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ListOrderResponse{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", page=" + page +
                '}';
    }
}